<?php

//脚本请求

$router->get('user/pay/exception', ['uses' => 'PayExceptionController@get_ten_min_pay_exception']);//付费异常(反洗钱)
$router->get('room/clear_wait_close', ['uses' => 'RoomController@clear_wait_close']);//清理待删除房间
$router->get('msg/keep_alive_chat', ['uses' => 'MsgController@keep_alive_chat_cron']);//计划任务，保活聊天室
$router->get('room/rc/offline/loop', ['uses' => 'RoomController@loopOffline']);//离线用户处理
$router->get('room/online/time', ['uses' => 'ApiRoomController@setOnlineTime']);//更新开厅时长
$router->get('room/setRoomhot', ['uses' => 'ApiRoomController@setRoomhot']);//更新房间热度和开启时长
$router->get('room/hot/updatees', ['uses' => 'RoomHotController@update_es_room_data_task']);//更新es房间数据接口
$router->get('finance/sync_room_wealth', ['uses' => 'FinanceController@sync_room_wealth']);//定时同步房间财富值
$router->get('inner/roomScore/roomReputationTimer', ['uses' => 'RoomScoreController@roomReputationTimer']);//信誉值更新定时器。房间在一定时间内没有违规，会自动涨积分
// $router->get('inner/content/image/loop', ['uses' => 'ContentCheckController@loopFilterImage']);//循环处理图片检测
$router->get('inner/room/label/timingHandle', ['uses' => 'RoomController@timingHandleLabel']);//定时设置/取消设置 房间标签
// $router->get('inner/room/voice/check/start/loop', ['uses' => 'RoomVoiceCheckController@loopStart']);//高频分流 音频检测
// $router->get('inner/room/voice/check/stop/loop', ['uses' => 'RoomVoiceCheckController@loopStop']);//高频分流 音频检测
// $router->post('inner/room/voice/check/callback', ['uses' => 'RoomVoiceCheckController@callBack']);//高频分流 音频检测
$router->get('union_rank/set_wealth' ,['uses'=>'UnionRankController@setWealth']);//设置公会财富等级和会长特权 
$router->get('union_rank/set_active_wealth' ,['uses'=>'UnionRankController@setActiveWealth']);//公会用户设置活跃等级
$router->get('union_rank/set_union_redis' ,['uses'=>'UnionRankController@setTodayUnionInfoToRedis']);//设置公会日贡献值为0
$router->post('user/rongCallback', ['uses' => 'UserController@rongCallback']);//融云判断
$router->get('sc/unionRoomWeekReward', ['uses' => 'SystemCrontabController@unionRoomWeekReward']);//公会房间周结算奖励
// $router->post('device/clackCallback', ['uses' => 'DeviceController@clackCallback']);//广告点击回调
// $router->get('device/clackCallback', ['uses' => 'DeviceController@clackCallback']);//广告点击回调

// 融云相关，计划后续陆续迁移至 RongCloudController【路径保持不变】
$router->get('room/rc/keep', ['uses' => 'RoomController@keepRongCloudRoom']);//保活融云聊天室
$router->post('room/rc/roomStatusCallback', ['uses' => 'RoomController@rongcloudRoomStatusCallback']);//融云回调
$router->post('rongcloud/voice/callback', ['uses' => 'ApiRongcloudController@rongcloudVoiceCallback']);//融云回调音视频房间状态同步
$router->post('rong_cloud_content_audit_callback', ['uses' => 'RongCloudAuditController@contentAuditCallback']);// 融云审核结果回调
// $router->post('room/rc/callback', ['uses' => 'RoomController@rongcloudCallback']);//融云回调订阅用户在线状态
$router->post('rc/updateUserOnlineStatus', ['uses' => 'RongCloudController@updateUserOnlineStatus']);//融云回调订阅用户在线状态

// $router->get('ceshi/todo', ['uses' => 'CeshiController@saveSmsCode']);//测试
// $router->get('ceshi/todo2', ['uses' => 'CeshiController@makeOrder']);//测试
// $router->get('ceshi/tdSend', ['uses' => 'CeshiController@tdSend']);//测试

//系统
$router->group(['prefix' => 'system'], function () use ($router) {
    $router->get('init', ['uses' => 'ApiSystemController@get_init']);//初始化
    $router->get('version', ['uses' => 'ApiSystemController@get_version']);//软件升级
    $router->get('version/get', ['uses' => 'ApiSystemController@getSystemVersion']);//根据渠道获取版本数据
    $router->get('explain', ['uses' => 'ApiSystemController@getExplain']);//获取系统说明信息
    $router->get('put_file_url', ['uses' => 'ApiSystemController@get_put_file_url']);//文件上传获取路径
    $router->get('new_expression', ['uses' => 'SystemController@get_expression_new_version']);//获取表情最后版本
    // 图形验证码
    $router->get('captcha_code', ['uses' => 'ApiSystemController@captchaCode']);//获取图形验证码
    $router->post('captcha_code/check', ['uses' => 'ApiSystemController@checkCaptchaCode']);//校验图形验证码
    $router->post('aliVerify', ['uses' => 'ApiSystemController@aliVerify']);//阿里云验证码校验
    //埋点
    $router->post('buryPoint', ['uses' => 'ApiSystemController@buryPoint']);//埋点上报
    $router->post('musicSearchList', ['uses' => 'ApiSystemController@musicSearchList']);//网易云搜索列表
    $router->get('musicSearchList', ['uses' => 'ApiSystemController@musicSearchList']);//网易云搜索列表
    $router->post('musicSearchList2', ['uses' => 'ApiSystemController@musicSearchList2']);//网易云搜索列表
    $router->get('musicSearchDetail', ['uses' => 'ApiSystemController@musicSearchDetail']);//网易云详情
    $router->get('musicSearchAddress', ['uses' => 'ApiSystemController@musicSearchAddress']);//网易云地址
    $router->get('shortcutWordList', ['uses' => 'ApiShortcutWordController@shortcutWordList']);//快捷语列表

});

// 设备信息
$router->group(['prefix' => 'device'], function () use ($router) {
    $router->get('storageplatform',['uses' => 'DeviceController@storagePlatform']);//app调用设置渠道
    $router->get('report', ['uses' => 'DeviceController@report']);//app调用设备上报
});

//用户
$router->group(['prefix' => 'member'], function () use ($router) { // $router->group(['prefix' => 'user'], function () use ($router) {
    $router->post('sms/code', ['uses' => 'UserController@sms_code']);//发送验证码POST
    $router->get('sms/code', ['uses' => 'UserController@sms_code']);//发送验证码POST
    $router->post('login/smscode', ['uses' => 'UserController@appLoginSmsCode']);//验证码登录POST
    $router->get('login/smscode', ['uses' => 'UserController@appLoginSmsCode']);//验证码登录GET
    $router->post('password/login', ['uses' => 'UserController@login_with_password']);//密码登录POST
    $router->get('password/login', ['uses' => 'UserController@login_with_password']);//密码登录GET
    $router->post('jg/login', ['uses' => 'UserController@jgLogin']);//极光一键登录POST
    $router->get('jg/login', ['uses' => 'UserController@jgLogin']);//极光一键登录GET

    $router->post('login', ['uses' => 'UserController@third_login']);//第三方登录
    $router->get('login_out', ['uses' => 'UserController@login_out']);//退出登录
    $router->post('phone_check', ['uses' => 'UserController@check_sms_code']);//忘记密码：校验验证码
    $router->post('set_password', ['uses' => 'UserController@set_password']);//设置密码
    $router->post('account/cancel', ['uses' => 'UserController@accountCancel']);//用户账号注销申请
    $router->get('check_plat_phone', ['uses' => 'UserController@check_plat_phone']);//手机校验/是否已平台注册
    $router->post('shumei/verifyCode', ['uses' => 'UserController@shumeiVerifyCode']);//数美二次校验验证码

    $router->get('info/default', ['uses' => 'UserController@getDefaultInfo']);//获取用户默认昵称头像
    $router->post('edit', ['middleware' => 'word_filter', 'uses' => 'UserController@user_edit']);//完善用户信息
    $router->get('info', ['uses' => 'UserController@get_user_info']);//用户信息
    $router->get('info_detail', ['uses' => 'UserController@get_user_info_detail']);//获取用户详细信息
    $router->get('room_user_info', ['uses' => 'UserController@get_in_room_user_info']);//在房间内获取用户信息
    $router->get('account_init', ['uses' => 'UserController@account_init']);//账号绑定初始化接口
    $router->get('keywords/search', ['uses' => 'UserController@keywordsSearch']);//关键字搜索

    $router->get('invite/list', ['uses' => 'UserController@getUserInviteList']);//我邀请的用户列表
    $router->get('invite/info', ['uses' => 'UserController@getUserInviteInfo']);//获取用户邀请信息

    $router->get('tags_with_cat', ['uses' => 'UserController@getUserTagsWithCat']);//获取带分类的用户标签
    $router->post('set_tags', ['uses' => 'UserController@setUserTags']);//设置用户个性标签

    $router->get('/verify/get_token', ['uses' => 'UserVerifyController@getToken']);//用户认证token获取
    $router->post('/verify/complete', ['uses' => 'UserVerifyController@complete']);//用户认证完成
    $router->get('/verify/get_re_token', ['uses' => 'UserVerifyController@getReverifyToken']);//实名认证二次认证获取token
    $router->post('/verify/re_complete', ['uses' => 'UserVerifyController@reverifyComplete']);//实名认证二次认证完成
    $router->get('/verify/get_info', ['uses' => 'UserVerifyController@getInfo']);//用户认证信息获取
    $router->post('/verify/get_user_info', ['uses' => 'UserVerifyController@getInfoByUser']);//获取指定用户的人认证信息
    $router->post('/verify/verifyCount', ['uses' => 'UserVerifyController@getVerifyCount']);//获取已经验证次数

    $router->post('verify/get_sign', ['uses' => 'UserVerifyController@getSign']);//用户认证sign获取 腾讯人脸
    $router->post('verify/result', ['uses' => 'UserVerifyController@reverifyResult']);//用户认证完成 腾讯人脸

    $router->get('union_vest_info', ['uses' => 'UserController@getUnionVestInfo']);//获取公会马甲相关信息

    $router->get('fullscreen_hide_check', ['uses' => 'UserController@fullscreenHideCheck']);//根据用户ip获取城市

    $router->get('private_chat/info_detail', ['uses' => 'UserController@getPrivateChatUserInfo']);//私聊信息用户资料卡
    $router->get('chat_backgroundimg',['uses' => 'UserController@getPrivateChatBackImg']);//获取私聊信息背景图

    $router->get('set/info', ['uses' => 'ApiUserController@getUserSet']);//用户设置-详情
    $router->get('set/edit', ['uses' => 'ApiUserController@editUserSet']);//用户设置-编辑
    $router->get('gift/switch/set', ['uses' => 'UserController@setGiftSwitch']);//设置礼物墙开关接口

    $router->get('firstRechargeBox/list', ['uses' => 'UserController@getUserFirstRechargeList']);//获取首冲礼包列表

    $router->post('feedback', ['uses' => 'FeedbackController@feedbackAdd']);//问题反馈

    $router->post('identityToVerify', ['middleware' => 'word_filter', 'uses' => 'ApiUserController@identityToVerify']);//主播信息编辑并审核
    $router->post('identityStatusUpdate', ['uses' => 'ApiUserController@identityStatusUpdate']);//主播身份状态编辑
    $router->get('identityList', ['uses' => 'ApiUserController@identityList']);//面试官搜索主播列表
    $router->get('identityClickMsg', ['uses' => 'ApiUserController@identityClickMsg']);//面试官身份点击主播提醒

    $router->get('checkUserGetGift', ['uses' => 'ApiUserController@checkUserGetGift']);//判断对方是否被我送过礼物

    $router->post('saveUserMsg', ['uses' => 'ApiUserController@saveUserMsg']);//记录用户私信数据

    $router->get('getUserIdentity', ['uses' => 'ApiUserController@getUserIdentity']);//获取用户身份
    $router->get('getAnchorAcceptGiftRank', ['uses' => 'ApiUserController@getAnchorAcceptGiftRank']);//获取主播收礼排行榜
    $router->post('delAnchorAcceptGiftRank', ['uses' => 'ApiUserController@delAnchorAcceptGiftRank']);//删除主播收礼实时榜单
});

//社交
$router->group(['prefix' => 'social'], function () use ($router) { // $router->group(['prefix' => 'friends'], function () use ($router) {
    $router->get('follow_list', ['uses' => 'FriendsController@get_follows']);//关注列表
    $router->get('fans_list', ['uses' => 'FriendsController@get_fans']);//粉丝列表
    $router->get('browse_list_v2', ['uses' => 'FootprintController@index']);//足迹列表
    $router->get('visitor_list_v2', ['uses' => 'FootprintController@visitors']);//访客列表
    $router->get('friend_list', ['uses' => 'FriendsController@get_friends']);//好友列表
    $router->get('follow', ['uses' => 'FriendsController@post_follow']);//关注用户
    $router->get('blocks_list', ['uses' => 'FriendsController@get_blocks']);//黑名单列表
    $router->get('block', ['uses' => 'FriendsController@post_block']);//黑名单添加删除
    $router->get('getUserInBlock', ['uses' => 'FriendsController@getUserInBlock']);//判断用户是否上黑名单
    $router->post('report', ['uses' => 'FriendsController@post_report']);//用户举报
    $router->get('counts', ['uses' => 'FriendsController@get_counts']);//用户关系各种数量
    $router->get('msg_auth', ['uses' => 'FriendsController@checkUserSendSms']);//用户发起私聊前校验并获得相互的关系
    $router->get('notice_num', ['uses' => 'FriendsController@getNoticeNum']);//粉丝新增数和访客数查询接口
    $router->get('getUserRelation', ['uses' => 'FriendsController@getUserRelation']);//获取用户之间的关系
    $router->get('getUserRelationList', ['uses' => 'FriendsController@getUserRelationList']);//获取用户亲密关系列表

});
$router->group(['prefix' => 'relationship'], function () use ($router) {
    $router->get('friends/getFriendList', ['uses' => 'FriendsController@getFriendList']);//获取用户好友列表
});

//动态
$router->group(['prefix' => 'moment'], function () use ($router) {
    $router->get('get_trends_list', ['uses' => 'TrendsController@get_trends_list']);//获取动态列表
    $router->get('get_trends_vide0_ist', ['uses' => 'TrendsController@get_trends_vide0_ist']);//获取动态列表2
    $router->get('get_trends', ['uses' => 'TrendsController@get_trends']);//获取动态
    $router->get('get_user_trends', ['uses' => 'TrendsController@get_user_trends']);//获取用户动态列表
    $router->post('trends_release', ['middleware' => 'word_filter', 'uses' => 'TrendsController@trends_release']);//发布动态
    $router->post('trends_like', ['uses' => 'TrendsController@trends_like']);//动态内容点赞or取消点赞
    $router->post('trends_delete', ['uses' => 'TrendsController@trends_delete']);//删除动态
    $router->get('get_trends_comment_list', ['uses' => 'TrendsController@get_trends_comment_list']);//获取评论列表
    $router->post('trends_comment_release', ['middleware' => 'word_filter', 'uses' => 'TrendsController@trends_comment_release']);//发布评论
    $router->post('trends_block_user', ['uses' => 'TrendsController@blockUser']);//添加动态禁止评论用户
    $router->post('trends_comment_delete', ['uses' => 'TrendsController@trends_comment_delete']);//删除评论
});

//财务
$router->group(['prefix' => 'finance'], function () use ($router) {
    //支付回调
    $router->post('pay/wx_notify', ['uses' => 'FinancePayController@wx_notify']);//微信支付回调
    $router->post('pay/alipay_notify', ['uses' => 'FinancePayController@alipay_notify']);//支付宝支付回调
    $router->post('pay/alipay_h5_notify', ['uses' => 'FinancePayController@alipay_h5_notify']);//支付宝h5支付回调
    $router->post('pay/wx_mp_notify', ['uses' => 'FinancePayController@wx_mp_notify']); //微信公众号回调
    $router->post('pay/apple_notify_verify', ['uses' => 'FinancePayController@apple_notify_verify']);//苹果支付回调
    $router->post('pay/threewx_notify', ['uses' => 'FinancePayController@threewx_notify']);//三方微信支付回调
    $router->post('pay/threeali_notify', ['uses' => 'FinancePayController@threeali_notify']);//三方支付宝回调
    $router->post('pay/cibnali_notify', ['uses' => 'FinancePayController@cibnali_notify']);//cibn支付宝回调
    $router->post('pay/weibaoali_notify', ['uses' => 'FinancePayController@weibaoali_notify']);//微保支付宝回调
    $router->post('pay/weibaoali_riskControlNotifyUrl', ['uses' => 'FinancePayController@weibaoali_riskControlNotifyUrl']);//微保支付宝风控回调
    $router->post('pay/sftali_notify', ['uses' => 'FinancePayController@sftali_notify']);//盛付通支付宝回调
    $router->post('pay/zftH5_notify', ['uses' => 'FinancePayController@zftH5_notify']);//常富支付宝回调
    $router->post('pay/ogw_notify', ['uses' => 'FinancePayController@ogw_notify']);//常富支付宝回调
    $router->post('pay/shangfutong_h5_notify', ['uses' => 'FinancePayController@shangfutong_h5_notify']);//常富支付宝回调
    $router->post('pay/sendpay_fast_notify', ['uses' => 'FinancePayController@sendpay_fast_notify']);//杉德快捷支付回调
    $router->post('pay/sendpay_wechat_notify', ['uses' => 'FinancePayController@sendpay_wechat_notify']);//杉德快捷支付回调
    $router->post('pay/sendpay_alipay_notify', ['uses' => 'FinancePayController@sendpay_alipay_notify']);//杉德快捷支付回调

    //支付相关
    $router->get('pay/type', ['uses' => 'FinanceController@getPayTypeList']);//获取支付类型
    $router->get('pay/rules', ['uses' => 'FinanceController@pay_rules']);//钻石充值规则列表
    $router->post('pay/do', ['uses' => 'FinancePayController@pay_unified_middleware']);//钻石充值订单创建预支付post
    $router->get('pay/do', ['uses' => 'FinancePayController@pay_unified_middleware']);//钻石充值订单创建预支付get
    $router->post('pay/firstRechargeDo', ['uses' => 'FinancePayController@pay_user_first_recharge_middleware']);//钻石充值订单创建预支付post
    $router->get('pay/firstRechargeDo', ['uses' => 'FinancePayController@pay_user_first_recharge_middleware']);//钻石充值订单创建预支付get
//    $router->get('pay/zhifuceshi', ['uses' => 'FinancePayController@pay_zhifuceshi_middleware2']);//支付测试
    $router->get('pay/sendpay_send_no', ['uses' => 'FinancePayController@sendPayByNo']);//杉德支付查询根据编号

    $router->get('cash', ['uses' => 'FinanceController@cash']);//账户信息
    $router->get('check_account_password', ['uses' => 'FinanceController@checkAccountPassword']);//校验账户是否设置密码
    $router->get('diamond_detail_list', ['uses' => 'FinanceController@diamond_detail_list']);//钻石明细列表
    $router->get('kk_detail_list', ['uses' => 'FinanceController@kk_detail_list']);//金币明细列表
    $router->get('kk_exchange_detail_list', ['uses' => 'FinanceController@kk_exchange_detail_list']);//金币兑换列表

    //排行榜
    $router->get('wealth_rank_list', ['uses' => 'ApiFinanceController@wealth_rank_list']);//财富等级列表
    $router->get('charm_rank_list', ['uses' => 'ApiFinanceController@charm_rank_list']);//魅力等级列表
    $router->get('game_rank_list', ['uses' => 'ApiFinanceController@game_rank_list']);//娱乐等级列表
    $router->get('room_wealth_charts', ['uses' => 'FinanceController@room_wealth_charts']);//房间富豪榜
    $router->get('room_charm_charts', ['uses' => 'FinanceController@room_charm_charts']);//房间魅力榜
    $router->get('true_love_rank',['uses' => 'ApiController@ture_love_rank']);//房间真爱榜
    $router->get('wealth_charts', ['uses' => 'FinanceController@wealth_charts']);//富豪榜
    $router->get('charm_charts', ['uses' => 'FinanceController@charm_charts']);//魅力榜
    $router->get('room_self_wealth_charts', ['uses' => 'FinanceController@room_self_wealth_charts']);//房间总财富榜
    $router->get('get_rank_appoint', ['uses' => 'FinanceController@get_rank_appoint']);//获取排行榜部分数据

    //贝灵斯 银行卡
    $router->get('bank/userBase', ['uses' => 'BankBlsController@getBankUserBase']);//查询用户提现基础信息
    $router->post('bank/bindV2', ['uses' => 'BankBlsController@bindBank']);//绑定银行卡
    $router->get('bank/list', ['uses' => 'BankBlsController@bankList']);//银行卡列表
    $router->get('bank/delete', ['uses' => 'BankBlsController@bankDelete']);//银行卡删除

    // $router->post('withdraw/getCloudH5Url', ['uses' => 'FinanceWithdrawController@getCloudH5Url']);//云账户获取h5地址
    // $router->post('withdraw/cloudH5Notify', ['uses' => 'FinanceWithdrawController@cloudH5Notify']);//云账户回调地址

    $router->get('need_reverify', ['uses' => 'FinancePayController@needReverify']);//判断用户是否需要二次验证 add by zxiaofee

    //提现支付宝
    $router->get('withdraw/getUserAlipay', ['uses' => 'FinanceWithdrawController@getUserAlipay']);//获取用户提现支付宝信息
    $router->post('withdraw/saveUserAlipay', ['uses' => 'FinanceWithdrawController@saveUserAlipay']);//用户提现支付宝保存
    $router->post('withdraw/delUserAlipay', ['uses' => 'FinanceWithdrawController@delUserAlipay']);//用户提现支付宝删除

    //提现
    $router->get('withdraw/check', ['uses' => 'FinanceWithdrawController@checkWithdraw']);//是否可以提现
    $router->get('withdraw/getLogV2', ['uses' => 'FinanceWithdrawController@getWithdrawLogV2']);//提现记录
    $router->post('withdraw/applyV2', ['uses' => 'FinanceWithdrawController@applyWithdrawV2']);//app 申请提现
    // $router->post('withdraw/bls/notify', ['uses' => 'FinanceWithdrawController@blsNotify']);//提现回调 贝灵斯
    $router->post('withdraw/yuque/notify', ['uses' => 'FinanceWithdrawController@yuqueNotify']);//提现回调 慧用工
    $router->post('withdraw/alipay/notify', ['uses' => 'FinanceWithdrawController@alipayNotify']);//提现回调 支付宝
    


    //云账户回调
    // $router->post('withdraw/pay/notify', ['uses' => 'FinanceWithdrawController@cloudCountNotify']);//云账户订单状态回调 小额 
    // $router->post('withdraw/pay/notify_large', ['uses' => 'FinanceWithdrawController@cloudCountNotifyLarge']);//云账户订单状态回调 大额

    // 结算
    // $router->get('settle/getSettleInfo', ['uses' => 'FinanceRoomSettleController@getSettleUserAndDiamond']);//待删除接口
    // $router->get('settle/getAllNickname', ['uses' => 'FinanceRoomSettleController@getAllNickname']);//待删除接口

    $router->get('exchange', ['uses' => 'FinanceController@exchange']);//金币兑换
    $router->get('set_account_password', ['uses' => 'FinanceController@setAccountPassword']);//设置账户密码（设置密码、修改密码、忘记密码）

    //用户花费钻石
    $router->get('msgPayConfig', ['uses' => 'ApiFinanceController@msgPayConfig']);//获取私聊扣费配置
    $router->post('payVoiceCall', ['uses' => 'ApiFinanceController@payVoiceCall']);//支付语音通话费用
    $router->post('payPrivateMsg', ['uses' => 'ApiFinanceController@payPrivateMsg']);//支付私聊费用

    //娱乐等级
    $router->get('getUserGameRank', ['uses' => 'ApiFinanceController@getUserGameRank']);//获取用户娱乐等级
    $router->post('rewardUserGameRank', ['uses' => 'ApiFinanceController@rewardUserGameRank']);//用户领取娱乐等级奖励

    //代理
    $router->get('agentStatus', ['uses' => 'ApiFinanceController@agentStatus']);//用户代理状态
    $router->get('agentSendSms', ['uses' => 'ApiFinanceController@agentSendSms']);//代理发验证码
    $router->post('agentSetPd', ['uses' => 'ApiFinanceController@agentSetPd']);//代理设置密码
    $router->post('agentKkExchangeDiamond', ['uses' => 'ApiFinanceController@agentKkExchangeDiamond']);//代理金币兑换钻石
    $router->post('agentDiamondToUser', ['uses' => 'ApiFinanceController@agentDiamondToUser']);//代理转钻石到指定用户
    $router->post('userReceiveAgentDiamond', ['uses' => 'ApiFinanceController@userReceiveAgentDiamond']);//用户领取转入的钻石
    $router->get('userAgentDLog', ['uses' => 'ApiFinanceController@userAgentDLog']);//获取用户代理交易记录
    $router->post('agentGolodToUser', ['uses' => 'ApiFinanceController@agentGolodToUser']);//代理转金币到指定用户
    $router->post('userReceiveAgentGolod', ['uses' => 'ApiFinanceController@userReceiveAgentGolod']);//用户领取转入的金币
    $router->get('userAgentGLog', ['uses' => 'ApiFinanceController@userAgentGLog']);//获取用户代理金币交易记录
    $router->get('agentGolodStatus', ['uses' => 'ApiFinanceController@agentGolodStatus']);//用户代理状态

});

//礼物
$router->group(['prefix' => 'gift'], function () use ($router) {
    $router->get('room_day_log', ['uses' => 'GiftController@get_day_room_log']);//房间礼物列表
    $router->get('gift_list', ['uses' => 'GiftController@gift_list']);//礼物商品列表
    $router->get('interact/rule', ['uses' => 'GiftController@getInteractRule']); //房间互动礼物规则
    $router->get('obtain_gift_list', ['uses' => 'GiftController@obtain_gift_list']);//收到的礼物列表
    $router->get('animate_resources', ['uses' => 'GiftController@get_animate_resources']);//获取预加载资源列表
    $router->get('userReceiveGiftList', ['uses' => 'ApiGiftController@userReceiveGiftList']);//用户收到的礼物列表
});

//房间
$router->group(['prefix' => 'chamber'], function () use ($router) { // $router->group(['prefix' => 'room'], function () use ($router) {
    $router->get('agora/token', ['uses' => 'RoomController@getAgoraToken']);//获取声网Token
    $router->get('zego/token', ['uses' => 'RoomController@getZegoToken']);//获取即构Token
    $router->get('info', ['uses' => 'RoomController@info']);//获取房间信息
    $router->post('edit', ['middleware' => 'word_filter', 'uses' => 'RoomController@edit']);//房间编辑
    $router->get('type_list', ['uses' => 'RoomController@get_room_types']);//房间类型列表
    $router->post('report', ['uses' => 'RoomController@post_report']);//房间举报
    $router->get('collect', ['uses' => 'RoomController@post_collect']);//房间收藏
    $router->get('screen_open', ['uses' => 'RoomController@screen_open']);//设置聊天屏幕是否开启
    $router->get('msg/clear_screen', ['uses' => 'RoomController@clearScreenMsg']);//清空公屏消息
    $router->get('role_room_list', ['uses' => 'RoomController@get_role_rooms']);//用户所在管理房间列表
    $router->get('user_current', ['uses' => 'RoomUserController@get_cur_room']);//用户当前所在房间
    $router->get('block', ['uses' => 'RoomController@post_block']);//房间黑名单设置
    $router->get('block_list', ['uses' => 'RoomController@get_blocks']);//房间黑名单列表
    $router->get('password', ['uses' => 'RoomController@password']);//设置房间密码
    $router->get('collect_list', ['uses' => 'RoomController@get_collects']);//房间收藏列表
    $router->get('background_list_v2', ['uses' => 'RoomController@get_backgrounds_v2']);//获取房间背景图片列表
    $router->post('background', ['uses' => 'RoomController@put_background']);//房间背景图片编辑
    $router->get('user_list_v2', ['uses' => 'RoomUserController@get_users_v2']);//房间用户列表(带分页)
    $router->get('chat/private/log', ['uses' => 'RoomController@addChatPrivateLog']);//房间私聊日志
    $router->get('rooms2', ['uses' => 'RoomController@get_rooms2_by_ids']);//小屋列表
    $router->get('user_exist', ['uses' => 'RoomUserController@user_exist']);//房间用户是否存在
    $router->get('hot/rooms3', ['uses' => 'RoomHotController@get_hot_v3']);//获取热门或根据类型获取房间列表
    $router->get('hot/none/type', ['uses' => 'RoomHotController@getNoneByType']);//热门小屋列表 by分类
    $router->get('online/getTime', ['uses' => 'RoomController@getOnlineTime']);//cbd房间开厅时长
    $router->get('wealth_value', ['uses' => 'RoomController@getWealthValue']);//获取房间财富值
    $router->get('set_user_inroom_time', ['uses' => 'RoomController@setUserInRoomTime']);//设置用户在房间时长
    $router->get('getHotRoom', ['uses' => 'RoomController@getHotRoom']);//随机已开启的CBD房间
    $router->post('exp/special', ['uses' => 'RoomExpController@sendSpecial']);//发送特殊表情 骰子、举牌
    $router->post('modeEdit', ['uses' => 'RoomController@modeEdit']);//房间模式编辑
    $router->get('gameRoomList', ['uses' => 'RoomController@gameRoomList']);//游戏房间列表
    $router->get('getCanPlayGameRoom', ['uses' => 'RoomController@getCanPlayGameRoom']);//获取可加入的游戏房间

    $router->get('role', ['uses' => 'RoomController@post_role']);//房间管理员设置
    $router->get('role_list', ['uses' => 'RoomController@get_roles']);//房间管理员权限列表

    $router->post('open', ['middleware' => 'word_filter', 'uses' => 'RoomController@open']);//开启房间
    $router->get('close', ['uses' => 'RoomController@close']);//关闭房间
    $router->get('join', ['uses' => 'RoomUserController@join']);//进入房间
    $router->get('join/again', ['uses' => 'RoomUserController@joinAgain']);//重新进入房间
    $router->get('join/confirm', ['uses' => 'RoomController@joinConfirm']);//进入房间确认
    $router->get('quit', ['uses' => 'ApiRoomController@roomUserQuitV1']);//离开房间
    $router->get('quit/confirm', ['uses' => 'ApiRoomController@roomUserQuit']);//离开房间
    $router->get('shotoff', ['uses' => 'RoomController@post_shotoff']);//房间用户踢出
    $router->get('revokeShotoff', ['uses' => 'ApiRoomController@revokeShotoff']);//房间解除用户踢出
    $router->get('shotoff/log', ['uses' => 'RoomController@getShotoffLog']);//房间用户踢出日志
    $router->get('leave/check', ['uses' => 'RoomController@checkLeaveRoom']);//用户重新进入软件检查是否需要退出房间

    $router->get('microphone/list', ['uses' => 'RoomMicroController@get_micros']);//普通麦列表
    $router->get('hostmicrophone/info', ['uses' => 'RoomHostMicroController@info']);//获取主持麦信息

    $router->get('volume_closed', ['uses' => 'RoomController@volume_closed']);//设置房间全麦是否关闭
    $router->get('microphone/apply_list', ['uses' => 'RoomWaitbitController@get_users']);//普通麦待麦列表
    $router->get('microphone/apply_clean', ['uses' => 'RoomWaitbitController@clean']);//待麦列表清理
    $router->get('microphone/apply', ['uses' => 'RoomWaitbitController@apply']);//普通麦上麦申请
    $router->get('microphone/cancel', ['uses' => 'RoomWaitbitController@cancel']);//普通麦取消上麦
    $router->get('microphone/reject', ['uses' => 'RoomWaitbitController@reject']);//普通麦拒绝上麦
    $router->get('microphone/accept', ['uses' => 'RoomWaitbitController@accept']);//普通麦允许上麦

    $router->get('microphone/open', ['uses' => 'RoomMicroController@open']);//普通麦开麦
    $router->get('microphone/close', ['uses' => 'RoomMicroController@close']);//普通麦关闭麦克风
    $router->get('hostmicrophone/open', ['uses' => 'RoomHostMicroController@volume_open']);//主持麦开麦
    $router->get('hostmicrophone/close', ['uses' => 'RoomHostMicroController@volume_close']);//主持麦闭麦
    $router->get('microphone/lock', ['uses' => 'RoomMicroController@lock']);//普通麦禁用
    $router->get('microphone/unlock', ['uses' => 'RoomMicroController@unlock']);//普通麦取消禁用
    $router->get('microphone/setboss', ['uses' => 'RoomMicroController@setboss']);//普通麦设置老板位
    $router->get('microphone/unsetboss', ['uses' => 'RoomMicroController@unsetboss']);//普通麦取消设置老板位

    $router->get('hostmicrophone/into', ['uses' => 'RoomHostMicroController@into']);//主持麦上麦
    $router->get('microphone/into', ['uses' => 'RoomMicroController@into']);//普通麦上麦
    $router->get('microphone/into_req', ['uses' => 'RoomMicroController@into_req']);//普通麦抱上麦
    $router->get('intomicro/confirm', ['uses' => 'ApiRoomController@intoMicroConfirm']);//上麦确认
    $router->get('hostmicrophone/out', ['uses' => 'RoomHostMicroController@out']);//主持麦下麦
    $router->get('microphone/out', ['uses' => 'ApiRoomController@roomMicroOut']);//普通麦下麦
    $router->get('microphone/out_req', ['uses' => 'ApiRoomController@roomMicroBeOut']);//普通麦抱下麦
    $router->get('hostmicrophone/out_req', ['uses' => 'ApiRoomController@roomHostMicroBeOut']);//主持麦抱下麦
    $router->get('outmicro/confirm', ['uses' => 'ApiRoomController@outMicroConfirm']);//下麦确认
    $router->get('microphone/jump', ['uses' => 'RoomMicroController@jump']);//普通麦跳麦

    $router->get('msg/change_micro_way', ['uses' => 'RoomController@changeMicroWayMsg']);//切换排麦方式消息通知

    //麦位相关
    $router->get('roomLockMicro', ['uses'=>'ApiRoomController@roomLockMicro']);//房间锁麦
    $router->get('roomUnLockMicro', ['uses'=>'ApiRoomController@roomUnLockMicro']);//房间解除锁麦

    //音乐相关
    $router->get('music/getList', ['uses' => 'MusicController@getMusics']);//获取音乐列表
    $router->post('music/upload', ['uses' => 'MusicController@uploadMusic']);//音乐上传
    $router->get('music/play', ['uses' => 'MusicController@playMusic']);//播放音乐
    $router->get('music/setPermission', ['uses' => 'MusicController@setPermission']);//设置/取消用户的音乐权限

    // 计数相关
    $router->get('tally/open', ['uses' => 'RoomTallyController@open']);//房间开启（重开）计数
    $router->get('tally/close', ['uses' => 'RoomTallyController@close']);//房间关闭计数
    $router->get('tally/info', ['uses' => 'RoomTallyController@info']);//房间计数获取
    $router->post('tally/reset', ['uses' => 'RoomTallyController@resetUserTally']);//重制房间指定用户计数
    $router->get('tally/charm/log', ['uses' => 'RoomTallyController@getCharmLogList']);//获取用户魅力值记录

    //新用户首充-长期活动
    $router->get('firstrecharge/pop',['uses' => 'RoomController@popFirstRecharge']);//新用户首次充值活动弹窗
    $router->get('firstrecharge/check',['uses' => 'RoomController@userFirstRecharge']);//未充值用户弹出首充活动弹窗
    $router->get('firstrecharge/useticket',['uses' => 'RoomController@getLuckTicket']);//获取抽奖券

    $router->get('saveUserChat', ['uses' => 'ApiRoomController@saveUserChat']);//记录房间用户聊天

    $router->get('protect_rank',['uses' => 'RoomProtectController@getRoomProtectRank']);//获取房间守护榜单
    $router->get('protect_list',['uses' => 'RoomProtectController@getRoomProtectList']);//获取房间守护榜单服务列表
    $router->post('pay_protect',['uses' => 'RoomProtectController@payRoomProtect']);    //购买/续费/升级守护榜
    $router->post('pay_notice',['uses' => 'RoomProtectController@payRoomProtectNotice']);    //守护榜支付前置弹窗
    $router->post('change_love_rank',['uses' => 'RoomTallyController@changeLoveRank']);//更改真爱榜状态

    //欢迎语
    $router->post('addRoomWelcomeWord', ['middleware'=>'word_filter', 'uses'=>'ApiRoomController@addRoomWelcomeWord']);//添加房间欢迎语
    $router->post('editRoomWelcomeWord', ['middleware'=>'word_filter', 'uses'=>'ApiRoomController@editRoomWelcomeWord']);//编辑房间欢迎语
    $router->post('delRoomWelcomeWord', ['uses'=>'ApiRoomController@delRoomWelcomeWord']);//删除房间欢迎语
    $router->get('listRoomWelcomeWord', ['uses'=>'ApiRoomController@listRoomWelcomeWord']);//房间欢迎语列表
    $router->get('randRoomWelcomeWord', ['uses'=>'ApiRoomController@randRoomWelcomeWord']);//获取房间欢迎语随机一条

    //每小时房间结算流水
    $router->get('hourRoomBill',['uses'=>'ApiRoomController@hourRoomBill']);//搜索对应房间下的每小时结算流水
    $router->get('selfRoomList',['uses'=>'ApiRoomController@selfRoomList']);//获取房间列表cbd房主为自己的列表

    //拍拍房
    $router->get('roomPaiPaiOpen',['uses'=>'ApiRoomController@roomPaiPaiOpen']);//拍拍房开始牵线
    $router->get('roomPaiPaiAddTime',['uses'=>'ApiRoomController@roomPaiPaiAddTime']);//拍拍房加时
    $router->get('roomPaiPaiGetResult',['uses'=>'ApiRoomController@roomPaiPaiGetResult']);//拍拍房查询结果
    $router->get('roomPaiPaiDefine',['uses'=>'ApiRoomController@roomPaiPaiDefine']);//拍拍房确定结果
    $router->get('roomPaiPaiEnd',['uses'=>'ApiRoomController@roomPaiPaiEnd']);//拍拍房结束并派发
    $router->get('roomPaiPaiHotMax',['uses'=>'ApiRoomController@roomPaiPaiHotMax']);//获取当前热度最高的拍拍房

});

$router->group(['prefix' => 'inner/game'], function () use ($router) {
    $router->get('poolListV2', ['uses' => 'ApiGameController@poolList']);
});

//广告
$router->group(['prefix' => 'ad'], function () use ($router) {
    $router->get('banner', ['uses' => 'AdController@get_banner']);//banner列表
    $router->get('customer', ['uses' => 'AdController@get_customer']);//关注前置跳转页面配置
    $router->get('suggest_room',['uses' => 'AdController@getSuggestRoom']);//获取推荐房间
    $router->get('suggest/hotroom',['uses' => 'AdController@suggestHotRoom']);//首页,交友页面推荐热度房间

});

//公会
$router->group(['prefix' => 'union'], function () use ($router) {
    $router->get('getUserUnion', ['uses' => 'UnionController@getUserUnion']);//获取指定用户公会

    $router->get('accept_room_role', ['uses' => 'UnionController@acceptRoomRole']);//设置房间超管
    $router->get('cancel_union_room_role', ['uses' => 'UnionController@cancelUnionRoomRole']);//取消房间超管


    $router->get('getList', ['uses' => 'UnionController@unionList']);//公会列表
    $router->post('app_create_union', ['uses' => 'UnionController@appCreateUnion']);//客户端创建公会
    $router->get('app_create_union', ['uses' => 'UnionController@appCreateUnion']);//客户端创建公会备用

    $router->get('get_union_consumer_user', ['uses' => 'UnionController@getUnionConsumerUser']);//查询房间流水


    $router->get('apply', ['uses' => 'UnionController@userApplyUnion']);//申请加入公会im
    $router->get('applyV2', ['uses' => 'UnionController@userApplyUnionV2']);//申请加入公会接口
    $router->get('userApplyUnionList', ['uses' => 'UnionController@userApplyUnionList']);//申请加入公会接口
    $router->get('userCountApplyUnionList', ['uses' => 'UnionController@userCountApplyUnionList']);//申请数量
    $router->get('my_union', ['uses' => 'UnionController@myUnion']);//公会详情
    $router->get('check_union_user_rate', ['uses' => 'UnionController@checkUnionUserRate']);//公会会长设置成员分成前置接口
    $router->post('set_union_user_rate',['uses' => 'UnionController@setUnionUserRate']);//公会长设置成员对私分成费率
    $router->post('union_user_confirm_smscode',['uses' => 'UnionController@unionUserSmscode']);//公会成员点击系统通知后发送验证码
    $router->post('union_user_confirm_request',['uses' => 'UnionController@unionUserConfirm']);//公会成员确认对公费率调整

    $router->get('quit_union', ['uses' => 'UnionController@quitUnion']);//离开公会
    $router->get('user_apply_union_status', ['uses' => 'UnionController@userApplyUnionStatus']);//审批入会
    $router->get('my_union_user_list', ['uses' => 'UnionController@myUnionUserList']);//公会成员列表

    $router->get('kick_union_user', ['uses' => 'UnionController@kickUnionUser']);//踢出公会
    $router->get('get_union_room_finance_v2', ['uses' => 'UnionController@getUnionRoomFinanceV2']);//公会流水统计
    $router->get('getUnionRoomFinance', ['uses' => 'UnionController@getUnionRoomFinance']);//公会流水统计
    $router->get('get_union_room_dj_bill', ['uses' => 'UnionController@getUnionRoomDjBill']);//公会主播流水统计
    $router->get('show_room_finance_stream', ['uses' => 'UnionController@showRoomFinanceStream']);//房间内是否显示房间财务流水
    $router->get('update_rule', ['uses' => 'UnionController@updateRule']);//更新公会细则
    $router->get('show_union_room', ['uses' => 'UnionController@showUnionRoom']);//公会cbd房间列表
    $router->get('roomTotalStream', ['uses' => 'UnionController@roomTotalStream']);//公会cbd房间列表
    $router->get('showUnionRoomV2', ['uses' => 'UnionController@showUnionRoomV2Days']);//公会房间流水
    $router->get('showUnionRoomV2Days', ['uses' => 'UnionController@showUnionRoomV2Days']);//公会房间流水


    $router->post('set_union_info', ['middleware' => 'word_filter','uses' => 'UnionController@setUnionInfo']);//设置公会信息
    $router->get('check_president_status', ['uses' => 'UnionController@checkPresidentStatus']);//校验会长身份通过并发短信
    $router->post('app_dissolve_union', ['uses' => 'UnionController@appDissolveUnion']);//解散公会
    $router->get('room_user_list', ['uses' => 'UnionController@getRoomUserList']);//公会房间管理员/成员列表
    $router->get('check_president_code',['uses' => 'UnionController@checkPresidentCode']);//解散公会 校验验证码
    $router->post('invite/join', ['uses' => 'UnionController@inviteJoin']);//邀请入会
    $router->get('search_user_by_uuid', ['uses' => 'UnionController@searchUserByUuid']);//通过用户uuid搜索公会成员

    $router->get('getUnionSettleInfo', ['uses' => 'ApiUnionController@getUnionSettleInfo']);//获取公会对公结算数据
    $router->post('submitUnionSettle', ['uses' => 'ApiUnionController@submitUnionSettle']);//公会对公结算提交

    $router->get('getIdentityMsgStatList', ['uses' => 'ApiUnionController@getIdentityMsgStatList']);//公会主播私信统计列表
    $router->get('getIdentityMsgStat', ['uses' => 'ApiUnionController@getIdentityMsgStat']);//公会指定主播私信统计
    $router->post('addIdentityMsgStatExcel', ['uses' => 'ApiUnionController@addIdentityMsgStatExcel']);//公会主播私信统计列表导出申请
    $router->get('getIdentityMsgStatExcelList', ['uses' => 'ApiUnionController@getIdentityMsgStatExcelList']);//公会主播私信统计导出列表

});

//公会等级相关（签到，捐赠，贡献...）
$router->group(['prefix' => 'union_rank'], function () use ($router) {
    $router->get('get_rank_list', ['uses' => 'UnionRankController@getRankList']);//公会等级相关
    $router->get('get_qualification_info' ,['uses'=>'UnionRankController@getQualificationInfo']);//获取资质认证信息
    $router->get('president_privilege', ['uses' => 'UnionRankController@getPresidentPrivilege']);//会长特权
});


//货架
$router->group(['prefix' => 'counter'], function () use ($router) {
    $router->get('cate/list', ['uses' => 'ApiCounterController@cateList']);//货架标签/分类
    $router->get('list', ['uses' => 'ApiCounterController@list']);//货架列表
    $router->get('mylist', ['uses' => 'ApiCounterController@myList']);//我的货架列表
    $router->post('give', ['uses' => 'ApiCounterController@give']);//我的货架赠送
    $router->post('buy', ['uses' => 'ApiCounterController@buy']);//购买&赠送
    $router->post('bagGiftSendBatch', ['uses' => 'ApiCounterController@bagGiftSendBatch']);//背包礼物批量赠送
    $router->get('giveSelfGift', ['uses' => 'ApiCounterController@giveSelfGift']);//送给自己礼物开关
    $router->get('confessionWall', ['uses' => 'ApiCounterController@confessionWall']);//送给自己礼物开关

});

//青少年模式
$router->group(['prefix' => 'teenager'], function () use ($router) {
    $router->post('lock', ['uses' => 'TeenagerController@setLock']); //加锁
    $router->post('unlocking', ['uses' => 'TeenagerController@unlocking']); //解锁/开锁
});


$router->group(['prefix' => 'mall'], function () use ($router) {
    $router->get('user_goods_list', ['uses' => 'ApiMallGoodsController@user_goods_list']);//我的商品列表
    $router->post('diy_attire', ['uses' => 'ApiMallGoodsController@diy_attire']);//DIY装扮设置接口-佩戴装扮
    $router->post('diy_cancel', ['uses' => 'ApiMallGoodsController@diy_cancel']);//DIY装扮取消接口
    $router->get('get_user_attire', ['uses' => 'ApiMallGoodsController@get_user_attire']);//用户当前使用的装扮
    $router->get('animate_resources', ['uses' => 'MallController@get_animate_resources']);//获取预加载资源列表
    $router->get('goods_list', ['uses' => 'MallController@goods_list']);//商城商品列表
    $router->get('goods_shopping', ['uses' => 'MallController@goods_shopping']);//购买或者赠送头像框
    $router->get('get_animate_resources', ['uses' => 'MallController@get_animate_resources']);//获取预加载资源列表
    $router->get('back_send_goods', ['uses' => 'MallController@back_send_goods']);//赠送多人商品
    $router->get('giveUserGoods', ['uses' => 'MallController@giveUserGoods']);//
});

//消息
$router->group(['prefix' => 'msg'], function () use ($router) {
    $router->post('text', ['uses' => 'MsgController@sys_text_msg']);//系统文本消息
    $router->post('novice_private_msg', ['uses' => 'MsgController@novicePrivateMsg']); //萌新发私信
});

//统计
$router->group(['prefix' => 'analysis/stat'], function () use ($router) {
    $router->get('room', ['uses' => 'AnalysisStatController@getRoomFlow']);//房间流量统计
    $router->post('room/insert', ['uses' => 'AnalysisStatController@insertRoomFlow']);//写入厅流量
});

// 活动相关
$router->group(['prefix' => 'activity'], function () use ($router) {
    $router->get('love/room/all', ['uses' => 'ActivityController@openRoomAll']);//获取全部开播中的房间
    $router->get('getUserRoom', ['uses' => 'ActivityController@getUserRoom']);//获取用户是否在直播
    $router->post('sendGift', ['uses' => 'ApiController@sendGift']);//发放礼物到礼物背包
    $router->post('increase', ['uses' => 'ApiController@increase']);//增加账户钻石余额
});

//小游戏
$router->group(['prefix' => 'game'], function () use ($router) {
    $router->post('get_sstoken', ['uses' => 'ApiGameController@get_sstoken']);//回调根据code获取sstoken
    $router->post('update_sstoken', ['uses' => 'ApiGameController@update_sstoken']);//回调更新sstoken
    $router->post('get_user_info', ['uses' => 'ApiGameController@get_user_info']);//回调获取用户信息
    $router->post('report_game_info_url', ['uses' => 'ApiGameController@report_game_info']);//回调游戏服务端上报游戏接入方的游戏的数据
    $router->post('gameStart', ['uses' => 'ApiGameController@gameStart']);//游戏开始
    $router->post('gameEnd', ['uses' => 'ApiGameController@gameEnd']);//游戏结束

    $router->post('roomPkOpen', ['uses' => 'ApiGameController@roomPkOpen']);//开启房间团战
    $router->post('pkStart', ['uses' => 'ApiGameController@roomPkStart']);//开始房间团战
    $router->post('pkEnd', ['uses' => 'ApiGameController@roomPkEnd']);//结束房间团战
    $router->post('roomPkInfo', ['uses' => 'ApiGameController@roomPkInfo']);//房间团战详情

});

// 网页版
$router->group(['prefix' => 'h5'], function () use ($router) {
    //登陆
    $router->post('user/mp_login/check_smscode', ['uses' => 'ApiUserController@mpLoginSmsCode']);//手机号验证码登录
    $router->post('user/mp_login', ['uses' => 'ApiUserController@mp_login']);//密码登录
    $router->get('mp_info', ['uses' => 'ApiUserController@mp_info']);//登录信息

    //根据UID获取用户信息
    $router->get('search_uid',['uses'=>'H5Controller@searchByUid']);//h5根据UID搜索用户
    //网页支付
    $router->post('payh5',['uses'=>'H5Controller@payH5']);//h5创建订单并拉取支付
    //网页授权参数
    $router->get('wxoauthparam',['uses'=>'H5Controller@getWxOauthParam']);//获取授权code参数
    //获取用户openid 
    $router->get('wxuser/openid',['uses'=>'H5Controller@getWxOpenid']);//获取用户openid 

});

//交友大厅接口
$router->group(['prefix' => 'chatfriends'], function () use ($router) {
    $router->get('checkUserBaseInfo',['uses'=>'ChatFriendsController@checkUserBaseInfo']);//主播资料验证
    $router->get('MyInfo',['uses'=>'ChatFriendsController@myBaseInfo']);//主播交友资料卡片
    $router->get('friendList',['uses'=>'ChatFriendsController@getListData']);//获取广场数据
    $router->get('friendList2',['uses'=>'ChatFriendsController@getListData2']);//获取广场数据


});


//跨房PK
$router->group(['prefix' => 'cross'], function () use ($router) {
    $router->get('send/pkmsg','CrossRoomPkController@sendPkmsg');//发送PK邀请
    $router->get('confirm/pkmsg','CrossRoomPkController@confirmPkmsg');//接收/拒绝邀请
    $router->get('pk/list','CrossRoomPkController@pkList');//房间pk列表
    $router->get('pk/mission','CrossRoomPkController@missionList');//用户任务列表
    $router->get('pk/get_award','CrossRoomPkController@getPkAward');//用户领取奖励
    $router->get('pk/rank','CrossRoomPkController@getRank');//获取榜单
    $router->get('pk/nowrank','CrossRoomPkController@getNowRank');//获取实时榜单
    $router->get('pk/roomrecord','CrossRoomPkController@getRoomRecord');//获取战绩
    $router->get('pk/self_room_week_rank','CrossRoomPkController@getSelfRoomWeekRank');//获取自己房间本周排名
    $router->post('pk/end','CrossRoomPkController@pkEnd');//pk结算
    $router->get('pk/mypk','CrossRoomPkController@myPk');//我的pk
    $router->get('pk/joinpkroom','CrossRoomPkController@joinPkroom');//加入PK房间获取PK记录
    $router->get('pk/pkcancel','CrossRoomPkController@pkCancel');//取消邀请状态
    $router->get('pk/rule','CrossRoomPkController@pkRule');//规则
});

//一起玩功能
$router->group(['prefix' => 'togethergame'], function () use ($router) {
    $router->get('game_open','TogetherGameController@getGameOpen');//一起玩开关
    $router->get('gamelist','TogetherGameController@getGameList');//获取一起玩游戏列表
    $router->get('gamesign_list','TogetherGameController@gameSignList');//一起玩签到列表
    $router->post('daily_sign','TogetherGameController@gameSignDailySet');//一起玩用户签到
    $router->get('game_notice','TogetherGameController@getGameNotice');//一起玩系统公告游戏滚动
});

// 后台调用礼物
$router->group(['prefix' => 'inner/gift'], function () use ($router) {
    $router->post('update', ['uses' => 'GiftController@giftUpdate']);
    $router->get('get_gift_classification', ['uses' => 'GiftController@getGiftClassification']);

});

//语音回归活动
$router->group(['prefix' => 'ddyy'], function () use ($router) {
    $router->get('float_icon', ['uses' => 'ComeBackController@getFloatIcon']);//获取悬浮icon
    $router->post('do_sigin',['uses' => 'ComeBackController@doSigin']);//签到
    $router->get('mission_list',['uses' => 'ComeBackController@getMissionList']);//任务列表
    $router->post('get_award',['uses' => 'ComeBackController@getAward']);//任务领取

    $router->get('rebate_ini',['uses' => 'RebateController@getConfig']);//获取活动配置信息
    $router->get('get_user_award',['uses' => 'RebateController@getUserAward']);//获取用户返利值
    $router->get('send_award',['uses' => 'RebateController@sendAward']);//领取返利值
});

//星辰变
$router->group(['prefix' => 'universe'], function () use ($router) {
    $router->get('config', ['uses' => 'ApiLuckDrawController@config']);//活动规则
    $router->post('exchange', ['uses' => 'ApiLuckDrawController@universe_exchange']);//兑换道具
    $router->get('awardListV2','ApiLuckDrawController@awardListV2');//星辰变中奖记录列表 今日礼物榜单
    $router->get('record', ['uses' => 'ApiLuckDrawController@wishLuckAwardListByUserId']);//我的中奖记录
    $router->get('poolAwardListV2','ApiLuckDrawController@poolAwardListV2');//星辰变奖励列表

    $router->post('draw', ['uses' => 'ApiLuckDrawController@wishpoolsDraw']);//抽奖
    $router->post('wishWheelDrawFull', ['uses' => 'ApiLuckDrawController@wishWheelDrawFull']); //星辰变发飘屏/滚动中奖记录以及星辰值
    $router->get('price', ['uses' => 'ApiLuckDrawController@getUniversePrice']);//单次抽奖价格
    $router->get('balance', ['uses' => 'ApiLuckDrawController@universeBalance']);//获取资产信息
    $router->get('rank',['uses' => 'ApiLuckDrawController@universeRank']);//获取星辰值排行榜
});

//万神殿
$router->group(['prefix' => 'defender'], function () use ($router) {
    $router->get('config', ['uses' => 'ApiWishDefenderController@config']);//活动规则
    $router->post('exchange', ['uses' => 'ApiWishDefenderController@exchange']);//兑换道具
    $router->get('winnerList','ApiWishDefenderController@winnerList');//擂主奖励记录
    $router->get('record', ['uses' => 'ApiWishDefenderController@wishLuckAwardListByUserId']);//我的中奖记录
    $router->get('poolAwardListV2','ApiWishDefenderController@poolAwardListV2');//奖励列表

    $router->post('draw', ['uses' => 'ApiWishDefenderController@draw']);//抽奖
    $router->post('wishWheelDrawFull', ['uses' => 'ApiWishDefenderController@wishWheelDrawFull']); //发飘屏/滚动中奖记录
    $router->get('price', ['uses' => 'ApiWishDefenderController@getDefenderPrice']);//单次抽奖价格
    $router->get('balance', ['uses' => 'ApiWishDefenderController@balance']);//获取资产信息
});

//波波球
$router->group(['prefix' => 'luck'], function () use ($router) {
    $router->post('exchange', ['uses' => 'ApiLuckDrawController@exchange']);//波波币兑换道具
    $router->get('price', ['uses' => 'ApiLuckDrawController@getPrice']);//单次抽奖价格
    $router->get('balance', ['uses' => 'ApiLuckDrawController@balance']);//获取资产信息
    $router->get('award_list', ['uses' => 'ApiLuckDrawController@poolAwardListV2']);//奖品列表默认显示前5个首页
});

//波波球
$router->get('wishWheelPrice', ['uses' => 'ApiWishWheelController@wishWheelPrice']); //波波球奖池配置获取
$router->get('wishWheelConfig', ['uses' => 'ApiWishWheelController@wishWheelConfig']); //波波球奖池配置获取
$router->post('wishWheelDraw', ['uses' => 'ApiWishWheelController@wishWheelDraw']); //波波球抽奖
$router->post('wishWheelPop',['uses' => 'ApiWishWheelController@wishWheelPop']);//波波球自动兑换波波币弹窗
$router->post('wishWheelConfirm',['uses' => 'ApiWishWheelController@wishWheelConfirm']);//波波球确认弹窗
$router->post('wishWheelDrawFull', ['uses' => 'ApiWishWheelController@wishWheelDrawFull']); //波波球发飘屏
$router->get('wishWheelGiftList','ApiWishWheelController@wishWheelGiftList');//波波球奖品列表
$router->get('wishWheelAwardListByUserId','ApiWishWheelController@wishWheelAwardListByUserId');//波波球用户中奖记录列表
$router->get('wishWheelAwardListV2','ApiWishWheelController@wishWheelDrawAwardListV2');//波波球今日中奖记录列表
$router->get('wishWheelAwardList','ApiWishWheelController@wishWheelDrawAwardList');//波波球今日中奖记录列表


//红包雨
$router->get('redPacketRainGetNewly', ['uses' => 'ApiRedPacketRainController@redPacketRainGetNewly']); //红包雨获取即将开始的一场数据
$router->get('redPacketRainDraw', ['uses' => 'ApiRedPacketRainController@redPacketRainDraw']); //红包雨抢红包

//心心相印
$router->group(['prefix' => 'hope'], function () use ($router) {
    $router->get('awardListV2','ApiHopeDrawController@awardListV2');//心心相印中奖记录列表 今日礼物榜单
    $router->get('poolAwardListV2','ApiHopeDrawController@poolAwardListV2');//心心相印奖励列表

    $router->get('marquee', ['uses' => 'ApiHopeDrawController@marquee']);//滚动中奖记录
    $router->addRoute(['GET', 'POST'], 'draw', ['uses' => 'ApiHopeDrawController@wishpoolsDraw']);//心心相印抽奖
    $router->addRoute(['GET', 'POST'], 'wishWheelDrawFull', ['uses' => 'ApiHopeDrawController@wishWheelDrawFull']); //心心相印发飘屏
    $router->get('rule', ['uses' => 'ApiHopeDrawController@rule']);//心心相印活动规则
    $router->addRoute(['GET', 'POST'], 'exchange', ['uses' => 'ApiHopeDrawController@hookBuy']);//宇宙波波球兑换道具
    $router->addRoute(['GET', 'POST'], 'hookBuy', ['uses' => 'ApiHopeDrawController@hookBuy']);//心心相印兑换道具
    $router->get('hookBalance', ['uses' => 'ApiHopeDrawController@hookBalance']);//心心相印获取资产信息
    $router->get('balance', ['uses' => 'ApiHopeDrawController@hookBalance']);//宇宙波波球获取资产信息
    $router->get('record', ['uses' => 'ApiHopeDrawController@wishLuckAwardListByUserId']);//心心相印我的中奖记录
    $router->get('price', ['uses' => 'ApiHopeDrawController@getPrice']);//心心相印单次抽奖价格
    $router->get('award_list', ['uses' => 'ApiHopeDrawController@poolAwardListV2']);//心心相印奖品列表默认显示前5个首页
    $router->addRoute(['GET', 'POST'], 'wishLuckPop',['uses' => 'ApiHopeDrawController@wishLuckPop']);//心心相印自动兑换告白币弹窗
    $router->addRoute(['GET', 'POST'], 'wishLuckConfirm',['uses' => 'ApiHopeDrawController@wishLuckConfirm']);//心心相印确认弹窗
    $router->get('wishLuckExGift',['uses' => 'ApiHopeDrawController@wishLuckExGift']);//心心相印投入展示礼物列表
});

//愤怒的小鸟
$router->get('angerbirdTest', ['uses' => 'ApiAngerbirdController@angerbirdTest']); //测试
$router->get('angerbirdGetConfig', ['uses' => 'ApiAngerbirdController@angerbirdGetConfig']); //愤怒的小鸟游戏配置获取
$router->get('angerbirdGetShopList', ['uses' => 'ApiAngerbirdController@angerbirdGetShopList']); //愤怒的小鸟兑换商店列表
$router->get('angerbirdShopBuy', ['uses' => 'ApiAngerbirdController@angerbirdShopBuy']); //愤怒的小鸟兑换商店兑换
$router->get('angerbirdGetShopLog', ['uses' => 'ApiAngerbirdController@angerbirdGetShopLog']); //愤怒的小鸟兑换商店记录列表
$router->get('angerbirdBuyEnergy', ['uses' => 'ApiAngerbirdController@angerbirdBuyEnergy']); //愤怒的小鸟购买能量
$router->get('angerbirdUserFirstStake', ['uses' => 'ApiAngerbirdController@angerbirdUserFirstStake']); //愤怒的小鸟用户初始押注
$router->get('angerbirdUserStake', ['uses' => 'ApiAngerbirdController@angerbirdUserStake']); //愤怒的小鸟用户叠加押注
$router->get('angerbirdUserStakeBack', ['uses' => 'ApiAngerbirdController@angerbirdUserStakeBack']); //愤怒的小鸟用户撤销押注
$router->get('angerbirdUserReward', ['uses' => 'ApiAngerbirdController@angerbirdUserReward']); //愤怒的小鸟用户兑换能量币
$router->get('angerbirdUserList', ['uses' => 'ApiAngerbirdController@angerbirdUserList']); //愤怒的小鸟本局押注用户列表
$router->get('angerbirdResList', ['uses' => 'ApiAngerbirdController@angerbirdResList']); //愤怒的小鸟结果记录
$router->get('angerbirdUserResList', ['uses' => 'ApiAngerbirdController@angerbirdUserResList']); //愤怒的小鸟用户飞行记录

